package cn.xny.pet.service;

import cn.xny.basic.service.BaseService;
import cn.xny.basic.util.AjaxResult;
import cn.xny.basic.util.PageList;
import cn.xny.pet.domain.SearchMasterMsg;
import cn.xny.pet.dto.MsgDto;
import cn.xny.pet.query.SearchMasterMsgQuery;

import javax.servlet.http.HttpServletRequest;


/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Tom
 * @since 2023-02-20
 */
public interface SearchMasterMsgService extends BaseService<SearchMasterMsg> {

    AjaxResult publish(SearchMasterMsg msg, HttpServletRequest request);


    //接口：管理员查询待处理寻主消息-业务要区分平台管理员店铺管理员
    PageList<SearchMasterMsg> toHandle(SearchMasterMsgQuery query, HttpServletRequest request);
    //接口：管理员查询已寻主池寻主消息
    PageList<SearchMasterMsg> toSearchMasterPool(SearchMasterMsgQuery query, HttpServletRequest request);
    //接口：管理员查询自己所有的寻主消息-业务要区分平台管理员店铺管理员
    PageList<SearchMasterMsg> finish(SearchMasterMsgQuery query, HttpServletRequest request);
    //接口：用户查询自己所有的寻主消息-不区分状态
    PageList<SearchMasterMsg> user(SearchMasterMsgQuery query, HttpServletRequest request);

    //拒单
    void reject(Long id);
    //接单
    void accept(MsgDto msgDto);
}
